scratch together
verb
1.
(
transitive, adverb
) to assemble with difficulty:
he scratched up a team for the football match